﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AdminUC.ascx.cs" Inherits="PASNew.U.Controls.AdminUC" %>
<h1>
    ADMIN</h1>
<div class="clientnavi">
    <div class="left">
        <ul>
            <li>
                <asp:Button ID="btnNewUser" runat="server" Text="New User" CssClass="button" CausesValidation="False"
                    OnClick="btnNewUser_Click" Width="80px" />
            </li>
            <li>
                <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="button" CausesValidation="true"
                    OnClick="btnSave_Click" />
            </li>
            <li>
                <asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="button" CausesValidation="true"
                    OnClick="btnDelete_Click" />
            </li>
        </ul>
        </div>
        <div class="right" style="padding-top: 5px;">
            <asp:DropDownList ID="DDUsers" runat="server" CssClass="dropdown" Style="height: 22px"
                OnSelectedIndexChanged="DDUsers_SelectedIndexChanged" AutoPostBack="True" AppendDataBoundItems="true">
                <asp:ListItem Text="Please select client ---" Value="-1"></asp:ListItem>
            </asp:DropDownList>
        </div>
        <div class="clear">
        </div>
    
</div>
<div class="clear">
</div>
<div class="clientdetail">
    <div class="left">
        <p>
            <asp:Label ID="lblUserName" runat="server" Text="User Name" AssociatedControlID="txtBoxUserName"></asp:Label><br />
            <asp:TextBox ID="txtBoxUserName" runat="server" CssClass="textbox"></asp:TextBox><asp:RequiredFieldValidator
                runat="server" ID="UserNameCheck" ErrorMessage="Please input users name" ControlToValidate="txtBoxUserName"
                ForeColor="White"></asp:RequiredFieldValidator><br />
        </p>
        <p>
            <asp:Label ID="lblUserEmail" runat="server" Text="User Email" AssociatedControlID="txtBoxUserEmail"></asp:Label><br />
            <asp:TextBox ID="txtBoxUserEmail" runat="server" CssClass="textbox"></asp:TextBox>
            <asp:RegularExpressionValidator ID="emailFormatCheck" runat="server" ErrorMessage="Please input a valid email"
                ForeColor="Black" ControlToValidate="txtBoxUserEmail" Width="180px" Display="Dynamic"></asp:RegularExpressionValidator>
            <asp:RequiredFieldValidator runat="server" ID="UserEmailCheck" ErrorMessage="Please input users email"
                ControlToValidate="txtBoxUserEmail" ForeColor="Black" Display="Dynamic"></asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblPassword" runat="server" Text="Password" AssociatedControlID="txtBoxPassword"></asp:Label><br />
            <asp:TextBox ID="txtBoxPassword" runat="server" CssClass="textbox"></asp:TextBox>
            <asp:RequiredFieldValidator
                runat="server" ID="UserPassowrdCheck" ErrorMessage="Please input users password"
                ControlToValidate="txtBoxPassword" ForeColor="Black" Display="Dynamic"></asp:RequiredFieldValidator><br />
        </p>
        <p>
            <asp:Label ID="lblALevel" runat="server" Text="Access Level" Visible="False"></asp:Label><br />
            <asp:TextBox ID="txtBoxUserALevel" runat="server" CssClass="textbox" Visible="False"></asp:TextBox><asp:RangeValidator
                ID="RVALevel" runat="server" ErrorMessage="Select 3(Manager) or 4(Sales Person)"
                ControlToValidate="txtBoxUserALevel" ForeColor="Black" MaximumValue="4" 
                MinimumValue="3" Display="Dynamic"></asp:RangeValidator>
        </p>
        <asp:Label ID="lblSuccess" runat="server" Text="Label" Visible="False" ForeColor="White"></asp:Label><br />
    </div>
    <div class="clear">
    </div>
</div>
